package com.cwd.arm.infrastructure.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cwd.arm.infrastructure.po.UserPo;
import com.cwd.arm.infrastructure.po.UserRolePo;
import com.cwd.arm.infrastructure.query.UserDaoQuery;

import java.util.List;

/**
 *
 * @author yan
 * @since 2021-11-08
 */
public interface UserDao extends IService<UserPo> {

    UserPo getByUsername(String username);

    UserPo getByPhone(String phone);

    UserPo getById(Long id);

    Page<UserPo> selectPage(UserDaoQuery daoQuery);

    List<UserPo> selectList(UserDaoQuery daoQuery);

}
